<%@ page language="java" %>

<%@ page import="com.scalar.chiptrack.commons.Constants,
                com.scalar.chiptrack.commons.SessionKeys,
                com.scalar.chiptrack.users.User,
                com.scalar.chiptrack.users.Functionality,
                com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>

<chiptrack:checkLogon sourcePage="/packingSlipMenu.do"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>
<% User user1 = (User)session.getAttribute (SessionKeys.USER_KEY); %>

<html:html locale="true">

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<style type="text/css">
a { text-decoration : none}
@page {
  size: landscape;
	}
}
</style>

<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type='text/css' rel='stylesheet'>




<SCRIPT language="JavaScript">

function submitPage()
{
    var csID =  document.packingSlipForm.customerShippingId.value;
    document.packingSlipForm.action = "<%=chipTracContext%>/packingSlip.do?action=view&customerShippingId=" + csID + "&mode=back";
    document.packingSlipForm.submit();
}

function packingSlipMenu()
{
}

function sendMail ( customerShipingId, salesOrderId )
{
    newWindow = window.open ('<%=chipTracContext%>/sendMail.do?customerShippingId='+customerShipingId +'&salesOrderId='+salesOrderId,'sendMailPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=800,height=550,resizable=yes');
    newWindow.focus();
}

function cancelPackingSlip()
{
    document.packingSlipForm.action='<%=chipTracContext%>/packingSlip.do?action=cancelPackingSlip';
    document.packingSlipForm.submit();
}

function confirmPackingSlip()
{
    document.packingSlipForm.action='<%=chipTracContext%>/packingSlip.do?action=confirmPackingSlip';
    document.packingSlipForm.submit();
}
</SCRIPT>

</HEAD>
<BODY bgColor='#ffffff' leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<!-- body starts -->
<html:form name="packingSlipForm" type="com.scalar.chiptrack.operations.packingslip.forms.PackingSlipForm" action="/packingSlip.do?action=confirmPackingSlip" scope="session">
<logic:equal name="packingSlipForm" property="status" value="<%=Constants.CUSTOMER_SHIPPING_STATUS_CANCELLED%>">
<table border="0" width="90%" align="center" background="<%=chipTracContext%>/jsp/includes/images/cancelled_icon.gif">
</logic:equal>
<logic:notEqual name="packingSlipForm" property="status" value="<%=Constants.CUSTOMER_SHIPPING_STATUS_CANCELLED%>">
<table border="0" width="90%" align="center">
</logic:notEqual>
	<%
		if ( !user1.isActionAllowed ( Functionality.PACKING_SLIP, User.USER_ACTION_MODIFY ) )
		{
	%>
	<logic:equal name="showNoModifyMessage" value="TRUE">
		<tr><td colspan='5'><font class='NArialS'><font color='blue'><b><%=Constants.NO_MODIFY_RIGHTS %></b></font><TD><TR>
	</logic:equal>
    <% } %>

	<tr>
		<td colspan=4 align=right>
		<logic:equal name="showMainMenu" value="TRUE">
            <%
                String searchLink;
                if ( user1.getUserType() == Constants.USER_TYPE_CHIPTRAC )
                {
                    searchLink = chipTracContext + "/searchPackingSlip.do";
                }
                else
                {
                    searchLink = chipTracContext + "/extUserSearchPackingSlip.do";
                }
            %>
        <font class='NArialL'>[<a href="<%=searchLink%>" onMouseOver="window.status='Click here to go to Packingslip Main Menu';return true" onMouseOut="window.status='';return true">Packingslip Main Menu</a>]&nbsp;&nbsp;</font>
		</logic:equal>
		</td>
	</tr>

	<logic:equal  name="packingSlipForm" property="cancelPackingSlip" value="true">
    <tr>
		<td colspan='4'>
        <font class='NArialL'><font color='red'>Are you sure, you want to cancel this packing slip &nbsp;&nbsp;</font></font>
        <chiptrack:restrictedLink functionality='<%=Functionality.PACKING_SLIP%>' action='<%=User.USER_ACTION_MODIFY%>' href='javascript:cancelPackingSlip();' onmouseover="window.status='Cancel this packing slip';return true" onmouseout="window.status='';return true"><img src='<%=chipTracContext%>/jsp/includes/images/cancel.gif'  border='0'></chiptrack:restrictedLink>
		&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="javascript:submitPage();" onMouseOver="window.status='Go Back to Main Packing Slip Menu';return true" onMouseOut="window.status='';return true">
        <img src='<%=chipTracContext%>/jsp/includes/images/edit.gif' border='0'></a>
        </td>
	</tr>
	</logic:equal>

	<logic:equal  name="packingSlipForm" property="confrimPackingSlip" value="true">
    <tr>
		<td colspan='4'>
		<font class='NArialL'><font color='red'>Are you sure, you want to confirm this packing slip &nbsp;&nbsp;</font></font>
		<chiptrack:restrictedLink functionality='<%=Functionality.PACKING_SLIP%>' action='<%=User.USER_ACTION_MODIFY%>' href='javascript:confirmPackingSlip();' onmouseover="window.status='Confirm this packing slip';return true" onmouseout="window.status='';return true"><img src='<%=chipTracContext%>/jsp/includes/images/confirm.gif' border='0'></chiptrack:restrictedLink>
		&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="javascript:submitPage();" onMouseOver="window.status='Go Back to Main Packing Slip Menu';return true" onMouseOut="window.status='';return true">
        <img src='<%=chipTracContext%>/jsp/includes/images/edit.gif' border='0'></a>
        </td>
	</tr>
	</logic:equal>
    <tr>
        <td colspan="4" align="right">
            <table border=0>
                <tr>
                    <td><a href="javascript:window.print();" title='Click here to print the Packing Slip'><img src="<%=chipTracContext%>/jsp/includes/images/printer_icon_small.gif" width='80' height="50" border="0" alt=""></a></td>
                    <td>&nbsp;&nbsp;</td>
                    <td><a href="javascript:sendMail(<bean:write name='packingSlipForm' property='customerShippingId'/>, <bean:write name='packingSlipForm' property='salesOrderId'/>);" title='Click here to send mail'><img src="<%=chipTracContext%>/jsp/includes/images/email1.gif" border="0" alt=""></a></td>
                    <td>&nbsp;&nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
		<td width="30%" align="left" valign="top">
			<img src="<%=chipTracContext%>/jsp/includes/images/scalar_logo.jpg" height="84" width="200" border=0>
		</td>
        <td width="35%"  align="center" class="NArialL">
			<font class='NArialW'>Packing Slip</font><br>
		</td>
        <td width="20%" colspan="2" align="right">
			<table>
                <tr>
                    <td align="left" class="NArialL">
                        <bean:write name="packingSlipForm" property="clientInfo.clientName" />
                        <bean:write name="packingSlipForm" property="clientAddrWithOutEmailObjFormatted" filter="false"/>
                    </td>
                </tr>
            </table>
        </td>
        <%--<td width="15%">

        </td>--%>
	</tr>

    <tr>
		<td colspan='4'>
			<table width="100%" border=0 cellspacing=0 cellpadding=0>
				<tr>
			        <td bgcolor='#FFFFEE'  height="100%" class="NArialRS" align="left" width="40%">
						<table width="100%" height="100%" class="NArialRS" border='1' bordercolor='#000000' cellspacing='0'>
							<tr height=30>
								<td class="NArialR" bgcolor="#DEE1E2" >Ship From:</td>
							</tr>
							<tr>
								<td class="NArialRS" valign="top">
                                    <%--<logic:notEmpty  name="packingSlipForm" property="vendorName" >
									    <bean:write name="packingSlipForm" property="vendorName" />
                                    </logic:notEmpty>--%>
                                    <bean:write name="packingSlipForm" property="clientName" />
                                    <bean:write name="packingSlipForm" property="shippingVendorObjectFormatted" filter="false"/>
								</td>
							</tr>
						</table>
					</td>
					<td width="20%"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td>
					<td bgcolor='#FFFFEE' class="NArialRS" align ="right"  width="40%" height="100%">
						<table width="100%"  height="100%" class="NArialRS" border='1' bordercolor='#000000' cellspacing='0'>
							<tr height=30><td class="NArialR" bgcolor="#DEE1E2" >Ship To:</td></tr>
							<tr>
								<td class="NArialRS" valign="top">
                                    <%--<logic:notEmpty name="packingSlipForm" property="shippingAddressObject">
                                        <logic:notEqual name="packingSlipForm" property="shippingAddressObject.contactPerson" value='<bean:write name="packingSlipForm" property="customerName"/>'>
                                             <bean:write name="packingSlipForm" property="customerName"/>
                                        </logic:notEqual>
                                    </logic:notEmpty>
                                    <logic:empty name="packingSlipForm" property="shippingAddressObject">
                                         <bean:write name="packingSlipForm" property="customerName"/>
                                    </logic:empty>--%>

									<bean:write name="packingSlipForm" property="shippingAddressObjectFormatted" filter="false"/>
								</td>
							</tr>
			            </table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>

        <html:hidden name="packingSlipForm" property="label"/>
        <html:hidden name="packingSlipForm" property="customerShippingId"/>
        <html:hidden name="packingSlipForm" property="noOfBoxes"/>
		<logic:iterate name="packingSlipForm" property="tracking" id="track">
			<input type="hidden" name="tracking" value='<bean:write name="track"/>'/>
		</logic:iterate>
        <html:hidden name="packingSlipForm" property="shippedVia"/>
        <html:hidden name="packingSlipForm" property="shipDate"/>
        <html:hidden name="packingSlipForm" property="invNo"/>
        <html:hidden name="packingSlipForm" property="contactPerson"/>
        <html:hidden name="packingSlipForm" property="weight"/>

    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr><td colspan=4><font class="NArialR"><strong><u>Shipping Instructions:</u></strong></font></td></tr>
    <tr><td colspan=4 bgcolor='#DEE1E2' width="100%"><font class="NArialRS"><bean:write name="packingSlipForm"  property="shippingInstructions" /></font></td></tr>
    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr>
		<td colspan=4 width="100%">
			<table border='1' width="100%" class='NArialRS' bordercolor='#000000' cellspacing='0'>
	            <tr>
                    <td width='12%' align='center' bgcolor='#DEE1E2' class='NArialR'>Customer PO#</td>
                    <logic:equal name="packingSlipForm" property="isSample" value="true">
                        <td width='12%' align='center' bgcolor='#DEE1E2' class='NArialR'>Sample Sales Order#</td>
                    </logic:equal>
                    <logic:notEqual name="packingSlipForm" property="isSample" value="true">
                        <td width='12%' align='center' bgcolor='#DEE1E2' class='NArialR'>Sales Order#</td>
                    </logic:notEqual>
                    <td width='12%' align='center' bgcolor='#DEE1E2' class='NArialR'>PackingSlip Label</td>
                    <td width='12%' align='center' bgcolor='#DEE1E2' class='NArialR'>Ship Date</td>
                    <td width='12%' align='center' bgcolor='#DEE1E2' class='NArialR'>Shipped Via</td>
					<td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Way Bill</td>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Del. Terms</td>
                    <td width='10%'  align='center' bgcolor='#DEE1E2' class='NArialR'># Cartons</td>
                    <% if( ConfigManager.getShowPackageDimensionInPackingSlip() ) { %>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Net Weight<br>(<bean:write name="packingSlipForm"  property="weightType"/>)</td>
                    <% } else { %>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Weight<br>(<bean:write name="packingSlipForm"  property="weightType"/>)</td>
                    <% } %>
                </tr>
                <tr>
	                <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="customerPO" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="salesOrderNumber" />&nbsp;</td>
					<td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="label" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="shipDate" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="shippedVia" />&nbsp;</td>
					<td align='center' bgcolor='#FFFFEE'>
						<table class='NArialRS'>
							<logic:iterate name="packingSlipForm" property="tracking" id="track">
								<tr><td><bean:write name="track"/></td></tr>
							</logic:iterate>
						</table>
					</td>
                    <td align='center' bgcolor='#FFFFEE'>&nbsp;
						<bean:write name="packingSlipForm" property="termsForHtmlView" />
					</td>
                    <td align='center'  bgcolor='#FFFFEE'>&nbsp;
						<bean:write name="packingSlipForm" property="noOfBoxesForHtmlView" />
					</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="weight" />&nbsp;</td>
                </tr>
            </table>
        </td>
	</tr>
    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <%--<tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr><td colspan=4><font class="NArialR"><strong><u>Shipping Instructions:</u></strong></font></td></tr>
    <tr><td colspan=4 bgcolor='#DEE1E2' width="100%"><font class="NArialRS"><bean:write name="packingSlipForm"  property="shippingInstructions" /></font></td></tr>--%>
    <bean:define name="packingSlipForm" id="packingSlipForm"/>
    <% if( ConfigManager.getShowPackageDimensionInPackingSlip() ) { %>
    <tr>
        <td colspan=4>
            <table border='1' width="100%" class='NArialRS' bordercolor='#000000' cellspacing='0'>
                <tr>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Country of Origin(Fab)</td>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Country of Origin(Assy)</td>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>MAWB No</td>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>HAWB No</td>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Flight-1 No</td>
					<td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>Flight-2 No</td>
                    <td width='10%' align='center' bgcolor='#DEE1E2' class='NArialR'>ETD</td>
                    <td width='10%'  align='center' bgcolor='#DEE1E2' class='NArialR'>ETA</td>
                    <td width="10%" align='center' bgcolor='#DEE1E2' class='NArialR'>Package Dimension<br>(<bean:write name="packingSlipForm"  property="uomPkgDimension"/>)</td>
                    <td width="10%" align='center' bgcolor='#DEE1E2' class='NArialR'>Gross Weight<br>(<bean:write name="packingSlipForm"  property="weightType"/>)</td>
                </tr>
                <tr>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="countryOfFabOrigin" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="countryOfAssyOrigin" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="mawb" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="hawb" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="flightNumberOne" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="flightNumberTwo" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="etd" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="eta" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="packageDimension" />&nbsp;</td>
                    <td align='center' bgcolor='#FFFFEE'><bean:write name="packingSlipForm" property="grossWeight" />&nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
    <% } %>
    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr><td colspan=4><font class="NArialR"><strong><u>Comments: </u></strong></font></td></tr>
    <tr><td colspan=4 bgcolor='#DEE1E2' width="100%"><font class="NArialRS">
    <%	String strComments = ((com.scalar.chiptrack.operations.packingslip.forms.PackingSlipForm)packingSlipForm).getComments();
        if( strComments != null )
        {
            strComments = strComments.replaceFirst( "\n", "" );
            strComments = strComments.replaceAll( "\n", "<BR>" );
            out.println(strComments);
        }
    %>
    </font></td></tr>
    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr>
		<td colspan=4 width="100%">
			<table border="1" width="100%" align='center' bordercolor='#000000' cellspacing='0' cellpadding='0'>
				<tr>
					<td width="5%"  nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">PO Line<br>Item</font></td>
                    <% if (ConfigManager.getBooleanProperty(ConfigManager.SHOW_MFG_PARTNO_PACKINGSLIP ) ) { %>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR"><bean:message key="label.mfgPartNumber"/></font></td>
                    <% }  %>
                    <% if (ConfigManager.getBooleanProperty(ConfigManager.SHOW_MRKT_PARTNO_PACKINGSLIP ) ) { %>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR"><bean:message key="label.mktgPartNumber"/></font></td>
                    <% } %>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR"><bean:message key="label.customerPartNumber"/></font></td>
                    <td width="25%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">Description</font></td>
                    <td width="5%"  nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">UOM</font></td>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">Customer Request Date</font></td>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">Schedule Date</font></td>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">Req Qty</font></td>
                    <td width="10%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">Qty <br>Shipped</font></td>
                    <td width="15%" nowrap align="center" bgcolor="#DEE1E2"><font class="NArialR">[Lot #] [Date Code] [Qty]</font></td>
                </tr>

				<nested:iterate name="packingSlipForm" property="lineitems" type="com.scalar.chiptrack.operations.packingslip.CustomerShippingLineItems" indexId="lineItemIdx" scope="session">
				<nested:greaterThan property="qtyPulled" value="0" >
                <tr>
					<td width="5%" align="center" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="cool_PO_Line_Item_No"/>&nbsp;</font>
					</td>
                    <% if (ConfigManager.getBooleanProperty(ConfigManager.SHOW_MFG_PARTNO_PACKINGSLIP ) ) { %>
                    <td width="10%" nowrap align="left" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="part_Number"/>&nbsp;</font>
					</td>
                    <% }  %>
                    <% if (ConfigManager.getBooleanProperty(ConfigManager.SHOW_MRKT_PARTNO_PACKINGSLIP ) ) { %>
                    <td width="10%" nowrap align="left" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="mkt_Part_Number"/>&nbsp;</font>
					</td>
                    <% } %>
                    <td width="10%" nowrap align="left" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="customer_Part_Number"/>&nbsp;</font>
					</td>
                    <td width="25%" align="left" bgcolor="#FFFFEE">
						<table border="0" width="90" bgcolor="#FFFFEE" class="viewTable">
							<tr>
								<td align="left" bgcolor="#FFFFEE">
									<font class="NArialRS"><nested:write property="cool_Description"/>&nbsp;</font>
								</td>
							</tr>
						</table>
                    </td>
                    <td width="5%" nowrap align="left" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="units"/>&nbsp;</font>
					</td>
                    <td width="10%" align="center" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="cool_Requested_Date"/>&nbsp;</font>
					</td>
                    <td width="10%" align="center" bgcolor="#FFFFEE"><font class="NArialRS">
                        <nested:notEqual property="cool_Revised_Date" value="">
							<nested:write property="cool_Revised_Date"/>&nbsp;</font>
						</nested:notEqual>
						<nested:equal property="cool_Revised_Date" value="">
							<nested:write property="cool_Schedule_Date"/>&nbsp;</font>
						</nested:equal>
					</td>
                    <td width="10%" align="right" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="cool_Qty"/>&nbsp;</font>
					</td>
                    <td width="10%" align="right" bgcolor="#FFFFEE"><font class="NArialRS">
						<nested:write property="qtyPulled"/>&nbsp;</font>
					</td>
					<td width="15%" align="left" bgcolor="#FFFFEE" nowrap><font class="NArialRS">
	                    <table border='1' bordercolor='gray' cellspacing='0'  cellpadding='0' width='100%' >
							<logic:present name="packingSlipForm" property="finalInventoryDataMapView">
                                <logic:iterate name="packingSlipForm" property="finalInventoryDataMapView" id="finalInventoryData">
                                    <bean:define name="finalInventoryData" property="key" id="tempLineitemId" type="java.lang.String"/>
                                    <nested:equal property="customerShippingLineItemId" value="<%=tempLineitemId%>">
                                        <logic:iterate name="finalInventoryData" property="value" type="com.scalar.chiptrack.operations.packingslip.FinalInventoryData" id="lotData">
                                            <logic:greaterThan name="lotData" property="quantityPull" value="0">
                                                <tr>
                                                    <td width="60%" nowrap class='NArialRS'>
													<%
														if( ConfigManager.getShowFabLotNumberInPackingSlip() )
														{
													%>
														<bean:write name="lotData" property="fabLotNumber"/>
													<%
														}
														else
														{
													%>
														<bean:write name="lotData" property="lotNumber"/>
													<%
														}	
													%>
													&nbsp;</td>
                                                    <td width="30%" nowrap class='NArialRS'><bean:write name="lotData" property="dateCode"/>&nbsp;</td>
                                                    <td width="10%" nowrap class='NArialRS'><bean:write name="lotData" property="quantityPull"/>&nbsp;</td>
                                                </tr>
                                            </logic:greaterThan>
                                        </logic:iterate>
                                    </nested:equal>
                                </logic:iterate>
							</logic:present>
						</table></font>
					</td>
                </tr>
				</nested:greaterThan>
				</nested:iterate>
			</table>
		</td>
	</tr>


	<tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
	<tr>
		<td colspan=4>
			<table border="0" width="100%" align='center' bordercolor='#FFFFFF' cellspacing='2' cellpadding='2'>
				<tr><td align="center"><font class='NArialView'>CERTIFICATE OF COMPLIANCE</font></td></tr>
				<tr><td><font class='NArialRS'>THIS PRODUCT SHIPPED HERE WITH HAVE BEEN INSPECTED AND COMPLY WITH THE REQUIREMENTS OF YOUR PURCHASE ORDER TO THE EXTENT THAT SUCH REQUIREMENT HAVE BEEN ACCEPTED AND ACKNOWLEDGED BY
                <logic:notEmpty  name="packingSlipForm" property="clientInfo.clientName" >
					<bean:write name="packingSlipForm" property="clientInfo.clientName" />
				</logic:notEmpty>

				SUBSTANTIATING INSPECTION AND TEST ON THAT FILE.</font>
                    <br><br>
                    <font class='NArialRS'>WE CERTIFY THAT INSPECTION EVIDENCE, INCLUDING TEST DATA,NECESSARY TO SUBSTANTIATE THIS CERTIFICATION IS AVAILABLE FROM OUR FILES.</font>
                </td></tr>
				<tr><td align="center"><font class='NArialRS'><B>THANK YOU FOR YOUR BUSINESS!</B></font></td></tr>
			</table>
		</td>
	</tr>
    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr>
		<td class='NArialR'>Packed By: </td>
        <td colspan=2 class='NArialR'>__________________________________________ </td>
        <td >&nbsp;</td>
	</tr>
    <tr>
		<td class='NArialR'>Checked By: </td>
        <td colspan=2 class='NArialR'>__________________________________________ <br>Name/Signature</td>
        <td >&nbsp;</td>
	</tr>
    <tr>
		<td class='NArialR'>&nbsp;</td>
        <td colspan=2 class='NArialR'>__________________________________________ <br>Name/Signature</td>
        <td >&nbsp;</td>
	</tr>
    <tr><td colspan=4><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=70></td></tr>
</table>
</html:form>
</body>
</html:html>